package mm.util;

import java.util.Locale;

public class Constants {

	private static final String tempWebPath=Thread.currentThread().getContextClassLoader().getResource("/")!=null?
			Thread.currentThread().getContextClassLoader().getResource("/").getPath()
			:Constants.class.getResource("/").getPath();
	public static final String WEB_PATH=tempWebPath.substring(1, tempWebPath.indexOf("/WEB-INF"));
	
	public static final Locale DEFAULT_LOCALE=Locale.US;

	public static final PairSet<Byte, Locale> LOCALES = new PairSet<Byte, Locale>();
	
	// TODO merge same languages
	static{
		LOCALES.put((byte)0, Locale.US);
		LOCALES.put((byte)1, Locale.SIMPLIFIED_CHINESE);
	}
	
}
